
//导入service对象
import service from "../utils/request";

//一个接口封装一个函数

// -------------------------------------------------------------------------
// Json模拟数据

// 插入轮播图数据
export function banner_add(payload = {}) {
    return service.post('/banner/add', payload)
}
//1.查看支付金额数据
export function index_pay(payload = {}) {
    return service.get('/index_pay', { params: payload })
}
//2.快速操作四个
export function index_action(payload = {}) {
    return service.get('/index_action', { params: payload })
}
//3.实时学习人数echarts
export function index_study(payload = {}) {
    return service.get('/index_study', { params: payload })
}
//4.用户访问echarts
export function index_yonghu(payload = {}) {
    return service.get('/index_yonghu', { params: payload })
}
//5.用户访问echarts
export function index_xiaoliang(payload = {}) {
    return service.get('/index_xiaoliang', { params: payload })
}

// ------------------------------------------------------------------------
//外网实体数据

//1.查看支付金额数据
// export function index_pay(payload = {}) {
//     return service.get('/indexpay', { params: payload })
// }
// //2.快速操作四个
// export function index_action(payload = {}) {
//     return service.get('/indexaction', { params: payload })
// }
// //3.实时学习人数echarts
// export function index_study(payload = {}) {
//     return service.get('/indexstudy', { params: payload })
// }
// //4.用户访问echarts
// export function index_yonghu(payload = {}) {
//     return service.get('/indexyonghu', { params: payload })
// }
// //5.用户访问echarts
// export function index_xiaoliang(payload = {}) {
//     return service.get('/indexxiaoliang', { params: payload })
// }


